<?php
/**
 * Search page
 *  
 * @author Joseph Chereshnovsky <joseph.chereshnovsky@gmail.com>
 * @version 1.0
 */
$this->headTitle( $this->_('Search') . ' :: ');
// $this->placeholder('title')->set( $this->_('Welcome') );
$this->headLink()->appendStylesheet(APP_URL . '/css/translation/search.css');
$this->headScript()->appendFile(APP_URL . '/js/search/form.js');
?>
<div id="search">

	<?php /* ?><h1><?php echo $this->_('Find translation') ?></h1> <?php */ ?>
	<h1><?php echo $this->_('Start search right now') ?></h1>

	<p>
	<?php echo $this->_('Are you searching for correct translation? Use simple and easy way to make a rigth decision, just'); ?>
	</p>

	<form action="<?php echo APP_URL ?>/translation/search/" method="post">
		<div id="search-form">
			<?php $this->headScript()->appendScript('
				var enterRequestPhrase = "' . $this->_('enter your phrase here...') .'"
			');?>
			<input id="search-field" name="search-field" type="text" value="<?php echo $this->search_phrase ?>" onblur="disableControl(this)" onfocus="enableControl(this)"  />
			<input id="search-submit" type="submit" value="<?php echo $this->_('Search') ?>" onclick="enableControl(document.getElementById('search-field'));this.form.submit();return false;" />
		</div>
	</form>

</div>

<?php $this->TranslationsCloud($this->tags); ?>